﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Cms.Domain;

namespace Cms.Tests.Unit.Domain
{

    [TestClass]
    public class CustomAdminPageTests
    {

        [TestMethod]
        public void TestSetAndGetCode()
        {
            CustomAdminPage adminPage = new CustomAdminPage();
            Assert.AreEqual("", adminPage.GetCode());
            Administrator admin = new Administrator();
            adminPage.SetCode("some code", admin);
            Assert.AreEqual("some code", adminPage.GetCode());
        }

    }

}
